<template>
  <div class="home">
    <router-view />

    <van-tabbar v-model="active" route>
      <van-tabbar-item to="/essayList" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/planList" icon="search">出行计划</van-tabbar-item>
      <van-tabbar-item replace to="/my" icon="setting-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import {ref} from 'vue';

export default {
  name: "home",
  data() {
    return {
    }
  },
  setup() {
    const active = ref(0);
    console.log('active:', active)
    return { active };
  },
};
</script>

<style scoped>
</style>